#ifndef VT_RENDER_H_H_H_H_
#define VT_RENDER_H_H_H_H_

//#include "QStackedWidget"
class QTime;
class QBasicTimer;
class VtRender : public QFrame
{
public:
	VtRender(QWidget *parent);
	virtual~VtRender(void);

	void renderReset();

	void initialize(HWND, HWND);
	void paintEvent(QPaintEvent *);
	QPaintEngine *paintEngine() const;

	void timerEvent(QTimerEvent *);

	//Qt::DropActions supportedDropActions () const;

	void resizeEvent(QResizeEvent *event);

 	 void dragEnterEvent(QDragEnterEvent *);
// 	 void dragMoveEvent(QDragMoveEvent *);
// 	 void dragLeaveEvent(QDragLeaveEvent *);
	 void dropEvent(QDropEvent *);

	 bool eventfilter(QObject *watched, QEvent *event);


    void focusInEvent(QFocusEvent *event);

	void focusOutEvent(QFocusEvent *event);

	void enterEvent(QEvent *);
	void leaveEvent(QEvent *);

	void showEvent(QShowEvent *);
	void hideEvent(QHideEvent *);

	//////////////////////////////////////////////////////////////////////////
	void newViewport(HWND);
	void closeViewport(int);





	

private:
	QTime watch;
	QBasicTimer ticker;

private:

	QWidget* mParent;
};
#endif